package Transportation;

public class CarTest {
    public static void main(String[] args) {
        Express express = new Express("1314520",80);
        express.sendBefore();
        System.out.println("----------------------------------------");

        Truck t = new Truck("川A250" +
                "","小货车","老司机");
        express.sending(t);
        System.out.println("----------------------------------------");
        express.sendAfter(t);
        Tool tool=new Tool() {
            @Override
            public void maintenance() {
                System.out.println("货物运输车辆保养完毕!");
            }
        };
        tool.maintenance();
        System.out.println("----------------------------------------");
    }
}
